package com.audaque.encoding.service;

import com.audaque.encoding.common.Page;
import com.audaque.encoding.model.EncodingHistory;
import com.audaque.encoding.model.EncodingLog;

import java.util.List;

/**
 * <p>编码接口</p>
 *
 * @author 谭黄
 * @since 2024/3/15
 */
public interface IEncodingService {

    int insertEncodingLog(EncodingLog log);
    int insertEncodingHistory(EncodingHistory eh);

    void saveEncoding(List<byte[]> res, String fileName);

    /**
     * 分页查询
     * @param page
     * @return
     */
    Page<EncodingHistory> page(Page page);

    /**
     * 查询处理日志
     * @param fileId
     * @return
     */
    List<EncodingLog> selectEncodingLog(String fileId);
}
